<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class pro_lap_permintaan_pembayaran extends MY_Controller {
	
	function __construct()
	{
		parent::__construct(); 
		
		$this->load->model('pro_permintaan_pembayaran_model', 'LapPembayaran');
		//$this->load->model('isp_combo_model', 'Combo');
		$this->secure_session();
	}
	
	function cetak(){
		$as_no_pembayaran	= get('no_pembayaran');
		
		if($as_no_pembayaran!='' && $as_no_pembayaran!=''){
			
			// Load FPDF
			$this->load->helper('fpdf');
			
			// Set Data
			$data['data']			= $this->LapPembayaran->GetCetak($as_no_pembayaran);
			// Load View
			$this->load->view('pro_laporan_permintaan_pembayaran/cetak', $data);
			
		}
	}
	function index(){
		$data['title'] = "Laporan Permintaan Pembayaran";	
		viewByTemplate('pro_laporan_permintaan_pembayaran/index', $data, 'grid');
	}

	
	
	function getdata()
	{
		$this->secure_session();
		echo $this->LapPembayaran->GetJSON();
	}
}
?>